home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 24 / Mac Magazin and MacEasy Magazine CD - Issue 24.iso / Wissenschaft & Technik / Sys Environment (PPC) Dev ƒ / Headers / machineEnvClass.h next >
Text File  |  1996-07-15  |  1KB  |  34 lines

  1. //machineEnvClass.h ©1996 Brian Bergstrand 07/16/96
  2.  
  3. class MachineEnv
  4. {
  5.   public:
  6.     MachineEnv ();//constructor - defined externally
  7.     virtual ~MachineEnv () {}//destructor - does nothing
  8.     //public functions to return the machine environment
  9.     long ReturnSysVer (void) const {return sysVer;}
  10.     long ReturnUpdateVer (void) const {return updateVer;}
  11.     long ReturnMachineType (void) const {return machineType;}
  12.     long ReturnProcessor (void) const {return processor;}
  13.     long ReturnRealMem (void) const {return realMem;}
  14.     long ReturnLogicalMem (void) const {return logicalMem;}
  15.     Boolean ReturnVMon (void) const {return VMon;}
  16.     
  17.   protected:
  18.     long sysVer;//system version
  19.     long updateVer;//update version
  20.     long machineType;//type of machine
  21.     long processor;//which PPC processor
  22.     long realMem;//physical memory
  23.     long logicalMem;//logical memory
  24.     Boolean VMon;//virtual memory on or off
  25.     
  26.   private:
  27.     /*The following functions are added so copies of objects can not
  28.       be made, pass/copy by reference when the need to arises. This is done
  29.       so we don't run into unforseen trouble by making a shallow copy, when 
  30.       we should have made a deep ((this) is assigned separate heap space) copy*/
  31.     
  32.     MachineEnv (MachineEnv &) {}//copy constructor
  33.     MachineEnv & operator=(MachineEnv &) {return *this;}//= overloader 
  34. };